@import "mocha.css";

* {
    font-family: "MesloLGS Nerd Font Mono Bold";
    font-size: 16px;
    min-height: 0;
    border: none;
    border-radius: 0px;
}

window#waybar {
    background: transparent;
    background-color: #000000;
    color: #a8a9d6;
    transition-property: background-color;
    transition-duration: .5s;
}

#window {
    padding: 0px 8px;
}

/* dwl 的 tags */
#tags button {
    color: #e9e8e9;
    /* background-color: #202020; */
    /* border-color: #444444; */
}

#tags button.occupied {
    color: #dddddd;
    background-color: #202020;
    border-color: #444444;
}

#tags button.focused {
    color: #dddddd;
    background-color: #3a3a3a;
    border-color: #3a3a3a;
}

#tags button.urgent {
    color: #dddddd;
    background-color: red;
    border-color: #3a3a3a;
}

/* hyprland 的 tags */
#workspaces button {
    color: #e9e8e9;
    padding: 0 5px;
}

#workspaces button.active {
    color: #dddddd;
    background-color: #202020;
    border-color: #444444;
}

#workspaces button.focused {
    color: #dddddd;
    background-color: #202020;
    border-color: #444444;
}

#workspaces button.urgent {
    color: #dddddd;
    background-color: #eb4d4b;
    border-color: #3a3a3a;
}

#workspaces button:hover {
    color: #868686;
    opacity: 0.5;
}

.modules-left {
    padding-left: 2px;
}

.modules-right {
    padding-right: 2px;
}

.modules-left>widget:first-child>* {
    margin-left: 0;
    padding-left: 0;
}

.modules-right>widget:last-child>* {
    margin-right: 0;
    padding-right: 0;
}

#pulseaudio,
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#wireplumber,
#tray,
#network,
#mode,
#mpd,
#scratchpad {
    font-weight: bold;
    margin: 1px 4px;
    padding: 0px 4px;
}

#mpd {
    color: #f5c2e7;
    border-bottom: 2px solid #f5c2e7;
}

#clock {
    color: #eba0ac;
    border-bottom: 2px solid #eba0ac;
}

#clock.date {
    color: #cba6f7;
    border-bottom: 2px solid #cba6f7;
}

#battery {
    color: #ffb823;
    border-bottom: 2px solid #ffb823;
}

#battery.warning {
    color: #ffb823;
}

#battery.discharging {
    color: #3a88ff;
}

#battery.charging {
    color: #26A65B;
}

#battery.plugged {
    color: #6fa685;
}

@keyframes blink {
    to {
        background-color: #ffff00;
    }
}

#battery.critical:not(.charging) {
    color: #f53c3c;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#cpu {
    color: #a6e3a1;
    border-bottom: 2px solid #a6e3a1;
}

#cpu.medium {
    color: #ffb823;
    border-bottom: 2px solid #ffb823;

}

#cpu.high {
    color: #eb4d4b;
    border-bottom: 2px solid #eb4d4b;

}

#temperature {
    color: @sky;
    border-bottom: 2px solid @sky;
}

#temperature.critical {
    color: #eb4d4b;
}

#memory {
    color: #94e2d5;
    border-bottom: 2px solid #94e2d5;
}

#pulseaudio {
    color: #89b4fa;
    border-bottom: 2px solid #89b4fa;
}

#disk {
    color: #fab387;
    border-bottom: 2px solid #fab387;
}

#tray{
    font-weight: normal;
}

#tray>.passive {
    -gtk-icon-effect: dim;
}

#tray>.needs-attention {
    -gtk-icon-effect: highlight;
    background-color: #eb4d4b;
}

#idle_inhibitor {
    color: #54575e;
    padding-right: 5px;
}

#idle_inhibitor.activated {
    color: #f38ba8;
}

#custom-appmenu {
    font-size: 20px;
    margin: 0px 8px;
    padding-right: 2px;
}

#idle_inhibitor,
#custom-system,
#custom-wallpaper,
#custom-exit {
    font-size: 18px;
    margin: 1px 4px;
}

#custom-polycat{
    font-family: "polycat";
    font-size: 20px;
    margin: 1px 4px;
}

#custom-wallpaper {
    padding-right: 4px;
    color: @flamingo;
}
